package com.ddone.demo.controller;

import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;

/**
 * @author ddone
 * @date 2024/3/23-19:20
 */
@Controller
@RequestMapping("/exception")
public class ExceptionController {

    @GetMapping("/test1")
    public String test1(){
        int i=1/0;
        return "index";
    }

    @GetMapping("/test2")
    public String test2(){
        String info = null;
        info.split(",");
        return "index";
    }

}
